﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class sysUpgrade
    {
        public static void insert(SysUpgradeEntity sysUpgrade)
        {
            SysUpgrade.insert(sysUpgrade);
        }

        public static void update(SysUpgradeEntity sysUpgrade)
        {
            SysUpgrade.update(sysUpgrade);
        }

        public static void delete(int suid)
        {
            SysUpgrade.delete(suid);
        }

        public static SysUpgradeEntity getById(int suid)
        {
            return SysUpgrade.getById(suid);
        }

        public static SysUpgradeEntity queryRangeTip()
        {
            return SysUpgrade.queryRangeTip();
        }

        public static DataSet select(string where, string orderBy, int pageSize, int pageIndex)
        {
            return DbHelper.ExecuteDataSetPageSize("*", "vw_SysUpgrade_list", where, "suid", orderBy, pageSize, pageIndex);
        }
    }
}